package com.example.lib_storage.database.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * @author yaotianxue
 * @description
 * @date 2024/10/23
 */
@Entity(tableName = "b_history")//tableName表名
data class HistoryEntity(
    @ColumnInfo//字段
    @PrimaryKey(autoGenerate = true) //主键自增
    val id:Long,
    @ColumnInfo
    val type:Int,
    @ColumnInfo
    val title:String,
    @ColumnInfo
    val primaryImg:String,
    @ColumnInfo
    val content:String,
    @ColumnInfo
    val authorImg:String,
    @ColumnInfo
    val authorName:String

)